package com.shuan.springboothello.config;

import com.shuan.springboothello.custom.Credentials;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

/**
 * User: lu
 * Date: 2021/12/15
 * Time: 18:29
 * Version: 1.0
 * Modified By:
 * Description:
 */
@Configuration
@ConfigurationProperties(prefix = "mail")
@Data
public class ConfigProperties {

    private String hostname;
    private int port;
    private String from;
    private List<String> defaultRecipients;
    private Map<String, String> additionalHeaders;
    /**
     * 嵌套的属性值
     */
    private Credentials credentials;
}
